<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #parent-fix{
            overflow: hidden;
        }
        #parent{
            width: 100%;
            display: table;

            margin-left: -10px;
        }
        #col1,#col2,#col3,#col4{
            float: left;
            width: 25%;
            box-sizing: border-box;

            height: 200px;
            text-align: center;
            line-height: 200px;
        }
        #col2,#col3,#col4{
            margin-left: 10px;
            
        }
        #inner{
            height: 300px;
        }
        #col1{
            background-color: goldenrod;
        }
        #col2{
            background-color: wheat;
        }
        #col3{
            background-color: beige;
        }
        #col4{
            background-color: goldenrod;
        }
    </style>
</head>
<body>
    <!-- 等分布局是指一行被分为若干列，每一列的宽度是相同的值 -->
    <!-- float属性实现等分布局效果 -->
    <div id="parent-fix">
        <div id="parent">
            <div id="col1">
                <div class="inner">

                </div>
            </div>
            <div id="col2">
                <div class="inner">

                </div>
            </div>
            <div id="col3">
                <div class="inner">

                </div>
            </div>
            <div id="col4">
                <div class="inner">

                </div>
            </div>
        </div>
    </div>

</body>
</html>